]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Don't use the corner's position for positioning ripples
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 3 Mar 2013 19:08:30 +0000 (14:08 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 4 Mar 2013 22:03:24 +0000 (17:03 -0500)
The corner may not be there in the future.

https://bugzilla.gnome.org/show_bug.cgi?id=663661

js/ui/layout.js

index 6ee51ac12f9f9c77740579522fd26bb6741163a5..315bc1024ebdb94d74cb5a6918ef662a629e30f0 100644 (file)
@@ -1193,9 +1193,8 @@ const HotCorner = new Lang.Class({
         ripple.opacity = 255 * Math.sqrt(startOpacity);
         ripple.scale_x = ripple.scale_y = startScale;
 
-        let [x, y] = this._corner.get_transformed_position();
-        ripple.x = x;
-        ripple.y = y;
+        ripple.x = this._x;
+        ripple.y = this._y;
 
         Tweener.addTween(ripple, { _opacity: 0,
                                    scale_x: finalScale,